package com.fbs.wowo.works.mapper;

import com.fbs.wowo.works.entity.Works;
import com.fbs.wowo.works.entity.WorksTypeNum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorksMapper {

    int deleteByPrimaryKey(String id);

    int insert(Works record);

    int insertSelective(Works record);

    Works selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Works record);

    int updateByPrimaryKey(Works record);

    List<Works> findWorksByUserId(String userId);

    List<WorksTypeNum> findTypeNum();

    int findWorksNumByUserId(String userId);

    Works findWorkByHash(@Param("userId") String userId,@Param("hashValue")  String hashValue);

    List<Works> findWorkTheRedList();
}